﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using UnityEngine.EventSystems;

public class UIGame : MonoBehaviour
{
    public Text numText;
    public Button Set;
    public GameObject UI_Help;

    private void Start()
    {
        Set.onClick.AddListener(SetGame);
        
    }

    void AddNum(int num)
    {
        numText.text = "X "+num.ToString();
    }

    public void EnterHelpGame()
    {
        UI_Help.SetActive(true);
    }

    public void ExitHelpGame()
    {
        UI_Help.SetActive(false);
    }

    void SetGame()
    {
        Time.timeScale = 0;
        Instantiate(Resources.Load("Prefabs/UI/Setting"),GameObject.Find("Canvas").transform);
    }
}
